//package org.lanqiao.service.impl;
//
//import org.lanqiao.login.ICategoryService;
//import org.springframework.beans.factory.InitializingBean;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
////实现InitializingBean的类在启动时就会调用
//@Component
//public class Init implements InitializingBean {
//    @Autowired
//    private ICategoryService categoryService;
//    @Override
//    public  void afterPropertiesSet() throws Exception {
//
//        System.out.println("-------------------缓存预热----------");
//        categoryService.saveCategoryRedis();
//
//    }
//}
